import request from '@/utils/request'

export function listbaseRepo(query) {
  return request({
    url: '/baseRepo/list',
    method: 'get',
    params: query
  })
}

export function createbaseRepo(data) {
  return request({
    url: '/baseRepo/create',
    method: 'post',
    data
  })
}

export function readbaseRepo(data) {
  return request({
    url: '/baseRepo/get/' + data.id,
    method: 'get'
  })
}

export function updatebaseRepo(data) {
  return request({
    url: '/baseRepo/update',
    method: 'post',
    data
  })
}

export function deletebaseRepo(data) {
  return request({
    url: '/baseRepo/delete/' + data.id,
    method: 'delete'
  })
}
